/*
 * @LastEditors: 杜康
 * @LastEditTime: 2021-12-23 17:12:56
 */
import { defineConfig, loadEnv } from 'vite'
import devConfig from './build/dev.config'
import proConfig from './build/pro.config'
export default defineConfig(({ command, mode }) => {
  loadEnv(mode, process.cwd())
  if (command === 'build') {
    return proConfig
  } else {
    return devConfig
  }
})
